package test.src.内部类与异常类;

public class Example7_2 {
    public static void main(String[] args) {
        ShowBank showBank = new ShowBank();
        showBank.showMess(new Bank() {
            @Override
            public void output() {
                money += 100;
                System.out.printf("中国银行资金: %3d\n", money);
            }
        });
        showBank.showMess(new Bank() {
            @Override
            public void output() {
                money += 200;
                System.out.printf("建设银行资金: %3d\n", money);
            }
        });
    }
}
